package health.lm.com.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Android Studio .
 * 作者：zhong
 * 日期：2018/12/29
 * 邮箱：15206394364@163.com
 * 介绍：
 * 修订：====================
 */
public class OrderOfflinePayEntity implements Parcelable {
    /**
     * order_id : 61
     * goods_price : 10
     * dispatch_price : 0
     * total_price : 10
     * coin : 10
     * coin_money : 10
     * money : 0
     */

    public String order_id;
    public String goods_price;
    public String dispatch_price;
    public String total_price;
    public String coin;
    public String coin_money;
    public String money;

    public OrderOfflinePayEntity() {
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getGoods_price() {
        return goods_price;
    }

    public void setGoods_price(String goods_price) {
        this.goods_price = goods_price;
    }

    public String getDispatch_price() {
        return dispatch_price;
    }

    public void setDispatch_price(String dispatch_price) {
        this.dispatch_price = dispatch_price;
    }

    public String getTotal_price() {
        return total_price;
    }

    public void setTotal_price(String total_price) {
        this.total_price = total_price;
    }

    public String getCoin() {
        return coin;
    }

    public void setCoin(String coin) {
        this.coin = coin;
    }

    public String getCoin_money() {
        return coin_money;
    }

    public void setCoin_money(String coin_money) {
        this.coin_money = coin_money;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(order_id);
        dest.writeString(goods_price);
        dest.writeString(dispatch_price);
        dest.writeString(total_price);
        dest.writeString(coin);
        dest.writeString(coin_money);
        dest.writeString(money);
    }

    public static final Creator<OrderOfflinePayEntity> CREATOR=new Creator<OrderOfflinePayEntity>() {
        @Override
        public OrderOfflinePayEntity createFromParcel(Parcel source) {
            //从Parcel容器中读取传递数据值，封装成Parcelable对象返回逻辑层。
            OrderOfflinePayEntity author=new OrderOfflinePayEntity();
            author.setOrder_id(source.readString());
            author.setGoods_price(source.readString());
            author.setDispatch_price(source.readString());
            author.setTotal_price(source.readString());
            author.setCoin(source.readString());
            author.setCoin_money(source.readString());
            author.setMoney(source.readString());
            return author;
        }

        @Override
        public OrderOfflinePayEntity[] newArray(int size) {
            //创建一个类型为T，长度为size的数组，仅一句话（return new T[size])即可。方法是供外部类反序列化本类数组使用。
            return new OrderOfflinePayEntity[size];
        }
    };
}
